package com.imooc.trading_system.vo.product;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Feng zhaoxi
 * @date 2022/4/26 5:24 下午
 * @Description
 */
@Data
public class PublishProductReqVO {
    @NotNull(message = "商品标题不能为空")
    @JsonProperty(value = "product_title")
    private String productTitle;

    @NotNull(message = "商品描述不能为空")
    @JsonProperty(value = "product_desc")
    private String productDesc;

    @NotNull(message = "商品数量不能为空")
    @JsonProperty(value = "product_stock")
    private Integer productStock;

    @NotNull(message = "商品价格不能为空")
    @JsonProperty(value = "product_price")
    private BigDecimal productPrice;

    @JsonProperty(value = "product_img")
    private List<String> productImg;

    @JsonProperty(value = "product_status")
    private Integer productStatus;


}
